*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    /* height: 100vh; */
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.box{
    margin: 10px 0;
    background-color: blanchedalmond;
    width: 250px;
    height:300px;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.box:nth-child(2n - 1){
    background-color: #ccc;
    transform: translateX(-100vw);
    transition: transform 1s ease;
}
.box:nth-child(2n) {
    /* background-color: #ccc; */
    transform: translateX(100vw);
    transition: transform 1s ease;
}
.box.show{
    transform: translateX(0);
    transition: transform 1s ease;
}